/*
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License Version
 *  3 as published by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
 *  USA.
 */

#ifndef _SDK_GLOBAL_H
#define _SDK_GLOBAL_H

class Op : public QObject{
    Q_OBJECT

    Q_ENUMS(States)
    Q_ENUMS(WindowStyle)

public:
    enum States{
        Ready,
        Initialized,
        Uninitialized
    };

    enum WindowStyle{
        blank,
        html,
        parent,
        background
    };
};

#define O_PRIVATE_NAME _d_ptr_
#define O_PRIVATE_DECLARE(classname) class classname##Private
#define O_PRIVATE_DECLARE_MEMBER(classname) classname##Private * const O_PRIVATE_NAME; \
            friend class classname##Private;

#define O_PRIVATE_CREATE(classname) O_PRIVATE_NAME(new classname##Private)
#define O_PRIVATE_DELETE delete O_PRIVATE_NAME;
#define O_PRIVATE O_PRIVATE_NAME

#define O_P O_PRIVATE
#define O_D(classname) classname##Private * d = O_PRIVATE_NAME;

#endif // _SDK_GLOBAL_H
